package com.xiyu.service.enums.medicine;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 药品剂型
*/
@Getter
@AllArgsConstructor
public enum HealthMedicineDosageFormEnum implements IntArrayValuable {

    /**
    * 胶囊
    */
    CAPSULE(1, "胶囊"),
    /**
    * 颗粒
    */
    PARTICLES(2, "颗粒"),
    /**
    * 片剂
    */
    TABLET(3, "片剂"),
    /**
    * 针剂
    */
    INJECTION(4, "针剂"),
    /**
    * 其他
    */
    OTHER(5, "其他");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(HealthMedicineDosageFormEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(HealthMedicineDosageFormEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
